Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

326
Visualizações
building oracle docker image on mac os x fails with "This system does not meet the minimum requirements for swap space."

I am using Docker Community Edition Version 17.03.0-ce-mac2 (15654) on OS X.

I am using these (official) oracle docker files

I am using oracle-xe-11.2.0-1.0.x86_64.rpm.zip as my installation binary.

When I run

:dockerfiles $ pwd
.../oracle/docker-images/OracleDatabase/dockerfiles

:dockerfiles $ ./buildDockerImage.sh -v 11.2.0.2 -x

I get this error:

Archive:  oracle-xe-11.2.0-1.0.x86_64.rpm.zip
   creating: Disk1/
   creating: Disk1/upgrade/
  inflating: Disk1/upgrade/gen_inst.sql
   creating: Disk1/response/
  inflating: Disk1/response/xe.rsp
  inflating: Disk1/oracle-xe-11.2.0-1.0.x86_64.rpm

This system does not meet the minimum requirements for swap space.  Based on
the amount of physical memory available on the system, Oracle Database 11g
Express Edition requires 2048 MB of swap space. This system has 1023 MB
of swap space.  Configure more swap space on the system and retry the
installation.

error: %pre(oracle-xe-11.2.0-1.0.x86_64) scriptlet failed, exit status 1
error: oracle-xe-11.2.0-1.0.x86_64: install failed
Removing intermediate container 86bb92ebf0e5

This worked last week. I can't recall if I did anything different back then.

What do I need to do to fix?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

The issue is that the virtual machine underpinning docker on os x has swap set to 1G. When I found "ramonpires" answer in this, it made it clear to me that I needed to add swap to that underlying vm. The instructions in that post got me most of the way there, but I had to add one final step to get it to work. So, full solution:

screen ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/tty
username:root
password:[empty]
close session:Ctrl+a d

free -m

This tells you how much swap is available. Check it is less than 2G.

dd if=/dev/zero of=/var/swap.file count=2000000 bs=1024
chmod go= /var/swap.file
mkswap /var/swap.file
echo "/var/swap.file swap swap defaults 0 0" >> /etc/fstab
swapon -a

The last line was missing from the linked to solution. Now run

free -m

To ensure you have more than 2G swap, and then re-run

:dockerfiles $ ./buildDockerImage.sh -v 11.2.0.2 -x
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda